import request from '@/utils/request';
// 获取下拉库数据，到达航站和出发航站的
export async function queryCityInfo(params) {
  return request('/dp/sys/getSelectCityInfo', {
    method: 'get',
    params,
  })
}

// 获取补偿合计列表信息
export async function irregularluggagesummaryTable(params) {
  return request('/dp/sys/report/irregularluggagesummary', {
    method: 'get',
    params
  });
}
//导出补偿合计列表信息
export async function downloadluggagesummaryExcel(params) {
  return request('/dp/sys/report/irregularluggagesummary/export', {
    method: 'get',
    responseType: 'blob',
    params
  });
}
// 获取补偿明细列表信息
export async function irregularluggagedetailTable(params) {
  return request('/dp/sys/report/irregularluggagedetail', {
    method: 'get',
    params
  });
}
//导出补偿明细列表信息
export async function downloadluggagedetailExcel(params) {
  return request('/dp/sys/report/irregularluggagedetail/export', {
    method: 'get',
    responseType: 'blob',
    params
  });
}
//  ===========成本分析表==============
export async function costdetail(params) {
  return request('/dp/sys/report/costReportInfoPage', {
    method: 'get',
    params
  });
}

export async function exportCostbookdetail(params) {
  return request('/dp/sys/report/costReportInfo/export', {
    method: 'post',
    responseType: 'blob',
    params
  });
}

// 标记or取消标记
export async function markFlag (params) {
  return request('/dp/report/updateFlag',{
    method: 'post',
    params
  })
}
// 一键标记
export async function quickMarkFlag(params) {
  return request('/dp/report/quickUpdateFlag', {
    method: 'post',
    params
  })
}

// 总计

export async function summary(params) {
  return request('/dp/report/summary', {
    method: 'get',
    params
  })
}
//  ===========支付明细表==============

//支付明细表
export async function paydetail(params) {
  return request('/dp/sys/report/payRecordInfoPage', {
    method: 'get',
    params
  });
}

export async function exportPaybookdetail(params) {
  return request('/dp/sys/report/payRecordInfo/export', {
    method: 'get',
    responseType: 'blob',
    params
  });
}
